Skip to content

Commit

Permalink
- Fix for #8,
Browse files Browse the repository at this point in the history
- And a tweak on one of the example descriptions
  • Loading branch information
jasnell committed Aug 22, 2014
1 parent dd179fc commit 726e10a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion activitystreams2-vocabulary.html
Expand Up @@ -1910,7 +1910,7 @@ <h2>Terms</h2>
<tr>
<td>Definition:</td>
<td>
A <code><a>LinkValue</a></code> referencing the link context.
A <code><a>LinkValue</a></code> referencing the <a href="activitystreams2.html#dfn-context">link context</a>.
</td>
</tr>
<tr>
Expand Down
21 changes: 20 additions & 1 deletion activitystreams2.html
Expand Up @@ -228,7 +228,9 @@ <h2>Basic activity with some additional detail</h2>
<figcaption>
Expresses the statement "Martin Smith posted an article to the blog
'Martin's Blog' at 3:04 PM GMT on February 2, 2011." Some additional
details about the article, actor and target blog are given.
details about the article, actor and target blog are given using properties
defined by the <a href="activitystreams2-vocabulary.html">Activity Streams 2.0
Vocabulary</a>.
</figcaption>
<pre class="example highlight json">{
"verb": "post",
Expand Down Expand Up @@ -691,6 +693,23 @@ <h2>Link Values</h2>
MIME Media Type of the linked resource.
</p>

<p>
RFC 5988 defines, also, that all Links have a <dfn>context</dfn>. This context
is the entity to which the link belongs. For instance, the note object in the
following example has an image link. The target of that link is "http://example.org/foo.png",
the link relation is "image", and the <a>context</a> is the note object itself,
identified by the <code>id</code> "urn:example:notes:1".
</p>

<figure><figcaption></figcaption>
<pre>
{
"objectType": "note",
"id": "urn:example:notes:1",
"image": "http://example.org/foo.png"
}
</pre></figure>

</section>

<section id="activities">
Expand Down

0 comments on commit 726e10a

Please sign in to comment.